package cn.touna.jss.modules.third.jxl.entity;


import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.Mobile;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.contraints.facet.Four;
import cn.touna.risk.api.contraints.facet.Second;
import cn.touna.risk.api.contraints.facet.Three;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

import java.util.ArrayList;
import java.util.List;

public class JuXinLiRequestEntity extends BaseDomain {

    /**
     * 名字
     **/
    @NotBlank(message = "名字不能为空", groups = {First.class, Second.class})
    private String name;
    /**
     * 身份证
     **/
    @IdCard(message = "身份证校验失败", groups = {First.class, Second.class})
    private String idCard;
    /**
     * 电话
     **/
    @Mobile(message = "电话号码校验失败", groups = {First.class, Second.class, Three.class, Four.class})
    private String mobile;

    private String type;

    /**
     * 备用电话
     **/
    private String mobileBackup;
    /**
     * 联系电话列表
     **/
    private String contactList;
    /**
     * 家庭地址
     **/
    private String homeAddr;
    /**
     * 家庭电话
     **/
    private String homeTel;
    /**
     * 工作电话
     **/
    private String workTel;
    /**
     * 工作地址
     **/
    private String workAddr;

    private String couplePhoneNum;
    /**
     * 标识
     **/
    private boolean flag;

    /**
     * 手机服务密码
     **/
    @NotBlank(message = "手机服务密码不能为空", groups = {Second.class})
    private String password;


    /**
     * 手机短信验证码
     **/
    @NotBlank(message = "短信验证码验证失败", groups = {Three.class})
    private String captcha;

    private List contacts = new ArrayList();

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getMobileBackup() {
        return mobileBackup;
    }

    public void setMobileBackup(String mobileBackup) {
        this.mobileBackup = mobileBackup;
    }

    public String getWorkAddr() {
        return workAddr;
    }

    public void setWorkAddr(String workAddr) {
        this.workAddr = workAddr;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getContactList() {
        return contactList;
    }

    public void setContactList(String contactList) {
        this.contactList = contactList;
    }

    public String getHomeAddr() {
        return homeAddr;
    }

    public void setHomeAddr(String homeAddr) {
        this.homeAddr = homeAddr;
    }

    public String getHomeTel() {
        return homeTel;
    }

    public void setHomeTel(String homeTel) {
        this.homeTel = homeTel;
    }

    public String getWorkTel() {
        return workTel;
    }

    public void setWorkTel(String workTel) {
        this.workTel = workTel;
    }

    public String getCouplePhoneNum() {
        return couplePhoneNum;
    }

    public void setCouplePhoneNum(String couplePhoneNum) {
        this.couplePhoneNum = couplePhoneNum;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public List getContacts() {
        return contacts;
    }

    public void setContacts(List contacts) {
        this.contacts = contacts;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
